﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;

namespace FMZJS.Model
{

    /// <summary>
    /// 用户
    /// </summary>
    [Serializable]
    public class User : BaseEntity
    {
        /// <summary>
        /// 主键
        /// </summary>
        [Key]
        public int UserId { get; set; }

        /// <summary>
        /// 真实姓名
        /// </summary>
        public string TrueName { get; set; }

        /// <summary>
        /// 用户名
        /// </summary>
        [Required]
        public string UserName { get; set; }

        /// <summary>
        /// 密码
        /// </summary>
        public string PassWord { get; set; }

        /// <summary>
        /// 职工编号
        /// </summary>
        public string StaffNum { get; set; }

        /// <summary>
        /// 所属部门
        /// </summary>
        public int DeptId { get; set; }

        /// <summary>
        /// 所属部门名称
        /// </summary>
        public string DeptName { get; set; }

        /// <summary>
        /// 部门编号
        /// </summary>
        public string DeptNum { get; set; }

        /// <summary>
        /// 手机号码
        /// </summary>
        public string MobilePhone { get; set; }

        /// <summary>
        /// 电话号码或者办公室分机
        /// </summary>
        public string Telephone { get; set; }

        /// <summary>
        /// 邮箱
        /// </summary>
        public string Email { get; set; }

        /// <summary>
        /// 邮箱大小限制
        /// </summary>
        public int EmailMaxSize { get; set; }

        /// <summary>
        /// 是否允许登录
        /// </summary>
        public bool IsLogin { get; set; }

        /// <summary>
        ///注册时间
        /// </summary>
        public DateTime RegDate { get; set; }

    }
}
